package com.huabo.contract.mysql.mapper;

import com.huabo.contract.mysql.entity.TblLegalLsettlementAttMySql;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huabo
 * @since 2022-03-21
 */
public interface TblLegalLsettlementAttMySqlMapper extends BaseMapper<TblLegalLsettlementAttMySql> {

    @Delete("DELETE FROM TBL_LEGAL_LSETTLEMENT_ATT WHERE ATTID = #{attid}")
    void deleteRelation(String attid);

    @Insert("INSERT INTO  TBL_LEGAL_LSETTLEMENT_ATT(LITIGATIONID,ATTID) VALUES (#{litigationid},#{id})")
    void insertAttRelation(Integer litigationid, String id);
}
